package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HVisitorOrder;
import com.flea.hclv.model.entity.vo.HVisitorOderQueryVo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface HVisitorOrderMapper {
    int deleteByPrimaryKey(String id);

    int insert(HVisitorOrder record);

    int insertSelective(HVisitorOrder record);

    HVisitorOrder selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HVisitorOrder record);

    int updateByPrimaryKey(HVisitorOrder record);

    HVisitorOrder selectByOrderNo(String orderNo);

    List<HVisitorOrder> selectByCreateUser(@Param("userId")String userId);

	int updateForCancelOder(HVisitorOrder oldOder);

	List<HVisitorOrder> findByVisorQueryOvPaging(RowBounds rowBounds, @Param("qvo")HVisitorOderQueryVo qvo);

  List<HVisitorOrder> selectByTimeTableId(@Param("timeTableId")String timeTableId);

  List<HVisitorOrder> findByGroupIdForPaging(RowBounds bounds, @Param("productId") String productId);

  List<HVisitorOrder> findByGroupId(@Param("groupId") String groupId);


  List<HVisitorOrder> findByVisorQueryOvPagingByCreateUserIdNoComplete(RowBounds rowBounds, HVisitorOderQueryVo qvo);
}